from django.shortcuts import render
from django.contrib.auth import login, logout
from django.contrib.auth.decorators import login_required


# Create your views here.
@login_required
def home(request):
    return render(request, 'home.html', {})


from django.views.generic.edit import CreateView
from .forms import RegisterForm
from django.urls import reverse_lazy


class RegisterFormView(CreateView):
    template_name = 'registration/register.html'
    form_class = RegisterForm
    success_url = reverse_lazy('home')
